package com.itheima.pattern.t15_reponsibility.demo2;

/**
 * 在JavaWeb应用开发中，FilterChain是职责链（过滤器）模式的典型应用
 */
public class TestDemo {

    public static void main(String[] args) {
        Request req = null;
        Response res = null;
        FilterChain filterChain = new FilterChain();
        filterChain.addFilter(new FirstFilter());
        filterChain.addFilter(new SecondFilter());
        filterChain.doFilter(req, res);
    }
}
